package org.kimoji.search;

import java.util.Comparator;

public class StringLengthComparator implements Comparator<String>{
	/**
	 * 比较str长度排序 从长到短
	 * @return
	 */
	@Override
	public int compare(String s1, String s2) {
		return s1.length() < s2.length()?1:0;
	}
}
